package com.ruoyi.project.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 项目验收对象 project_acceptance
 * 
 * @author czj
 * @date 2025-01-06
 */
public class ProjectAcceptance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long acceptanceId;

    /** 项目id */
    @Excel(name = "项目id")
    private Long projectId;

    /** 验收日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "验收日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date acceptanceDate;

    /** 验收审核人id */
    @Excel(name = "验收审核人id")
    private Long acceptanceReviewerId;

    /** 验收状态（1=批准，2=驳回，3=需修改） */
    @Excel(name = "验收状态", readConverterExp = "1==批准，2=驳回，3=需修改")
    private Long acceptanceStatus;

    /** 验收报告路径 */
    @Excel(name = "验收报告路径")
    private String acceptanceReportPath;

    /** 验收意见 */
    @Excel(name = "验收意见")
    private String acceptanceComments;

    /** 最终验收批准日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最终验收批准日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finalApprovalDate;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updatedBy;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 删除人 */
    @Excel(name = "删除人")
    private String deletedBy;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deletedAt;

    /** 删除标记，0=未删除，1=已删除 */
    @Excel(name = "删除标记，0=未删除，1=已删除")
    private Integer isDeleted;

    /** 版本号 */
    @Excel(name = "版本号")
    private Long version;

    public void setAcceptanceId(Long acceptanceId) 
    {
        this.acceptanceId = acceptanceId;
    }

    public Long getAcceptanceId() 
    {
        return acceptanceId;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setAcceptanceDate(Date acceptanceDate) 
    {
        this.acceptanceDate = acceptanceDate;
    }

    public Date getAcceptanceDate() 
    {
        return acceptanceDate;
    }
    public void setAcceptanceReviewerId(Long acceptanceReviewerId) 
    {
        this.acceptanceReviewerId = acceptanceReviewerId;
    }

    public Long getAcceptanceReviewerId() 
    {
        return acceptanceReviewerId;
    }
    public void setAcceptanceStatus(Long acceptanceStatus) 
    {
        this.acceptanceStatus = acceptanceStatus;
    }

    public Long getAcceptanceStatus() 
    {
        return acceptanceStatus;
    }
    public void setAcceptanceReportPath(String acceptanceReportPath) 
    {
        this.acceptanceReportPath = acceptanceReportPath;
    }

    public String getAcceptanceReportPath() 
    {
        return acceptanceReportPath;
    }
    public void setAcceptanceComments(String acceptanceComments) 
    {
        this.acceptanceComments = acceptanceComments;
    }

    public String getAcceptanceComments() 
    {
        return acceptanceComments;
    }
    public void setFinalApprovalDate(Date finalApprovalDate) 
    {
        this.finalApprovalDate = finalApprovalDate;
    }

    public Date getFinalApprovalDate() 
    {
        return finalApprovalDate;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setDeletedBy(String deletedBy) 
    {
        this.deletedBy = deletedBy;
    }

    public String getDeletedBy() 
    {
        return deletedBy;
    }
    public void setDeletedAt(Date deletedAt) 
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() 
    {
        return deletedAt;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("acceptanceId", getAcceptanceId())
            .append("projectId", getProjectId())
            .append("acceptanceDate", getAcceptanceDate())
            .append("acceptanceReviewerId", getAcceptanceReviewerId())
            .append("acceptanceStatus", getAcceptanceStatus())
            .append("acceptanceReportPath", getAcceptanceReportPath())
            .append("acceptanceComments", getAcceptanceComments())
            .append("finalApprovalDate", getFinalApprovalDate())
            .append("createdBy", getCreatedBy())
            .append("createdAt", getCreatedAt())
            .append("updatedBy", getUpdatedBy())
            .append("updatedAt", getUpdatedAt())
            .append("deletedBy", getDeletedBy())
            .append("deletedAt", getDeletedAt())
            .append("isDeleted", getIsDeleted())
            .append("version", getVersion())
            .toString();
    }
}
